﻿
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="searchBond.aspx.cs" Inherits="BuyLocalBonds.searchBond" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <h2 align="left">
            Buy Local Bonds: Bond Search</h2>
            <p></p>
        <asp:ValidationSummary ID="ValidationSummary" runat="server" ForeColor="Red" />
        <table align="center" style="width: 70%">
            <tr>
                <td>
                    <label>
                        Name:</label>
                </td>
                <td>
                    <asp:TextBox ID="bondName" runat="server"></asp:TextBox>
                &nbsp;e.g. ABC</td>
            </tr>
            <tr>
                <td>
                    <label>
                        CUSIP:</label>
                </td>
                <%--<asp:RequiredFieldValidator ID="CUSIPFieldValidator" 
        ControlToValidate="cusipTextBox"  runat="server" ErrorMessage="9-digit CUSIP Required"
        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>--%>
                <td>
                    <asp:TextBox ID="cusip" runat="server"></asp:TextBox>
                &nbsp;e.g. 000000001</td>
            </tr>
            <tr>
                <td>
                    Bond Issuer:
                </td>
                <td>
                    <asp:TextBox ID="issuer" runat="server"></asp:TextBox>
                &nbsp;e.g. DB</td>
            </tr>
            <tr>
                <td>
                    Rating:
                </td>
                <td>
                    Low
                    <asp:TextBox ID="RatingLow" runat="server"></asp:TextBox>&nbsp; High
                    <asp:TextBox ID="RatingHigh" runat="server"></asp:TextBox>
                &nbsp;e.g. AAA</td>
            </tr>
            <tr>
                <td>
                    Coupon(%):
                </td>
                <td>
                    Low
                    <asp:TextBox ID="CouponLow" runat="server"></asp:TextBox>&nbsp; High
                    <asp:TextBox ID="CouponHigh" runat="server"></asp:TextBox>
                &nbsp;e.g. 6.0</td>
            </tr>
            <tr>
                <td>
                    Current Yield(%):
                </td>
                <td>
                    Low
                    <asp:TextBox ID="CurrentLow" runat="server"></asp:TextBox>&nbsp; High
                    <asp:TextBox ID="CurrentHigh" runat="server"></asp:TextBox>
                &nbsp;e.g. 7.5</td>
            </tr>
            <tr>
                <td>
                    Maturity Date:
                </td>
                <td>
                    Low
                    <asp:TextBox ID="MaturityLow" runat="server"></asp:TextBox>&nbsp; High
                    <asp:TextBox ID="MaturityHigh" runat="server"></asp:TextBox>
                &nbsp;e.g. 1/31/2015</td>
            </tr>
            <tr>
                <td>
                    Par Value:
                </td>
                <td>
                    Low
                    <asp:TextBox ID="ParLow" runat="server"></asp:TextBox>&nbsp; High
                    <asp:TextBox ID="ParHigh" runat="server"></asp:TextBox>
                &nbsp;e.g. 100</td>
            </tr>
            <tr>
                <td>
                    Yield to Maturity(%):
                </td>
                <td>
                    Low
                    <asp:TextBox ID="YTMlow" runat="server"></asp:TextBox>&nbsp; High
                    <asp:TextBox ID="YTMhigh" runat="server"></asp:TextBox>
                &nbsp;e.g. 5.0</td>
            </tr>
            <tr>
                <td>
                    Price:
                </td>
                <td>
                    Low
                    <asp:TextBox ID="PriceLow" runat="server"></asp:TextBox>&nbsp; High
                    <asp:TextBox ID="PriceHigh" runat="server"></asp:TextBox>
                &nbsp;e.g. 98.5</td>
            </tr>
                        <tr><td colspan ="2">
                <asp:Button ID="btnSearchBond" align="right" Border="1px" runat="server" Text="Search Bond"
                    Height="30px" Width="90px" OnClick="btnSearchBond_Click" /></td> </tr>
        </table>
    </div>
    </asp:Content>


    
